<h1><%= t(:users) %></h1>

<ul>
  <% @users.each do |u| %>
    
    <li>
      <span class="user-name"><%= u.get_name %></span>
      <ul class="user-actions">
        <li><%= link_to t(:edit), edit_admin_user_path(u.id) %></li>
        <% unless u.is_administrator? %>
          <li><%= link_to t(:remove), admin_user_path(u.id), :method => 'delete', :confirm => t(:confirmation_message) %></li>
          <li><%= link_to t(:offs), admin_user_offs_path(u.id) %></li>
          <li><%= link_to t(:extra_hours), admin_user_hour_banks_path(u.id) %></li>
        <% end %>
      </ul>
    </li>
  
  <% end %>
</ul>

<p id="new-user"><%= link_to t(:new_user), new_admin_user_path %></p>
<p class="back"><%= link_to t(:back), '/admin' %></p>
